#ifndef DTB_
#define DTB_
typedef unsigned int uint;
class DTBFile
{
public:
	DTBFile();
	~DTBFile();
	void Open(char * filename);
	time_t GetTime();
	uint GetPing();
	uint GetPosition();
	uint GoToNextBlock();
	uint GoToPrevBlock();
	uint GoToBlock(int nBlockNum);
	uint Seek(int uiCount);
	uint GoToBegin();
	uint GoToEnd();
	void SetPosition(uint uiPosition);
	uint SeekToTime(time_t ttTime);
	void Write(time_t ttTime, uint uiPing);
	FILE * GetFile();
private:
	TFile * file;
};
#endif